<html>

<head>
<title>Ankiety</title>
<META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8">
</head>

<body>
<div style="text-align:center; width:1024px; height:250px; text-align:center; margin-left:auto; margin-right:auto">
<img src="Logo_admin.png"/>
<hr/>
	<?php 
	$link = mysql_connect('localhost', 'root', '', 'ankiety')
    	or die('Could not connect: ' . mysql_error());
	echo "<br>";
	mysql_select_db('ANKIETY') or die('Could not select database');

	session_start();

	echo '<p><form name="dodaj_ankiete" method="post" action="admin_dodawanie.php">';
	echo "<input name='dodaj' type='submit' value='Dodaj ankietę' style='width:280px;'>";
	$_SESSION['odpowiedzi']=2;
	echo "</form>";
	
	echo '<form name="edytuj_ankiete" method="post" action="admin_edycja.php">';
	echo "<input name='edytuj' type='submit' value='Zarządzaj ankietami' style='width:280px;'/>";
	echo "</form></p>";
	
	?>
</body>

</html>
